This grounding exercise is called the 5-4-3-2-1 technique:
You can also attempt to ground yourself by trying to focus on each of your senses in sequence. This grounding exercise is called the 5-4-3-2-1 technique: