First I check to make sure that it wasn't me falling out of bed.
Then I grab my smartphone and turn on the flashlight to point in the direction of the sound.
There's a door to a garden near my room so I often get little bugs coming inside from underneath that door to see what's going on.