A simple and cost effective solution to identify your device position is an SMT 4 Directions tilt sensor. This component is suite for a vertical pcb. Either your device tilts left/right or back/forth, you will get a signal.
Typical applications: Screens, Covers, Handles,
GET YOUR QUOTE
ASK FOR MORE INFO