How can I have my enemey character check for holes in the ground?

If you want to do something like death you could use a trigger volume and on entering the trigger doing something. Same for the end of the level, make a trigger that tells the game loop you finished the map.