Raise to wake

I notice on very rare occasions if my iPhone is flat on a surface (not facing down) the screen just randomly turns on by itself. It is however very rare. Is the sensor messed up or something?
Welcome to iMore.

I don't think anything is wrong with your phone or its sensor. You even stated that it's very rare that it occurs. I'd wager that it's just one of those random little things that happens with all consumer products.
A power surge may cause that if it's plugged in. If it's not plugged in, it's probably a notification that didn't quite show on the screen. Turn all all your notifications off for lockscreen. See if it still happens. If not, turn one on at a time. You might find the culprit that way. Most likely an app notification.
Sometimes it is annoying
A power surge may cause that if it's plugged in. If it's not plugged in, it's probably a notification that didn't quite show on the screen. Turn all all your notifications off for lockscreen. See if it still happens. If not, turn one on at a time. You might find the culprit that way. Most likely an app notification.

Exactly this. Thanks Ledsteplin

Original thread: https://forums.imore.com/threads/raise-to-wake.386731/