Changing terrain in racing game

I’m currently doing the sound design for a small racing game built in unity. I’m having some trouble getting different terrain types e.g. grass, sand, to trigger loops on entering. The car is using wheel colliders, and all different terrains are made of both ‘Default (Mesh Filter)’ and ‘Mesh Renderer’ components. How can I make things respond to these different terrain types? I’ve never really used unity so I’m a bit out my depth - any help would be really appreciated!

You need to do this from scripting.