2D Grounchecking

Soo, How do you make a groundchecking script? The ones that I found in several scripting tutorials dont really work as planned. Is it possible to make a script that checks the whole time if the box collider is touching a diffrent colider.How I was thinking to do it is to make a box collider on the player’s feet and put the script on it.But I’m not sure if its possible do to it like that,as im quiet new to unity.Are there any tutorials of some sort that explain groundchecking in 2D and 3D?

In collision stay, you can check the normals of the collided objects