how to add ground Check in unity 3d

Code Example - how to add ground Check in unity 3d

                
                        isGrounded = Physics.CheckSphere(groundCheck.position, groundDistance, groundMask);