Collision check between two gameObject in script of another gameObject

Hello I’m new to unity and C#, i did a little Java some times ago but i cant remember almost anything.
In this project i have 3 objects: the floor , the player and its child (the sphere) at its feet, to check the collision with the floor.
Screenshot (20)
i want the collision check between the floor (tagged as ground) and the sphere to be inside the script of the player for knowing if it’s grounded, but i dont know how to refer at the sphere inside the player’s script. What is the code line for checking the collision?

oh by the way, if it changes something, the sphere is not tangible

If your parent object have a RigidBody component, the parent will receive collision events for all of its children.

So basically all you need to check is:

private bool isGrounded;
private void OnCollisionEnter(Collision collision) 
{
    if(collision.gameObject.CompareTag("Ground")) //Checks when player is grounded 
    {
        isGrounded = true;
    }
}

Then you can use either OnCollisionEnter to set isGrounded to false, or if the only thing that unground the character is a Jump method, then set the isGrounded to false when your player jumps