Tilt Sensor - 4-way
This tilt sensor can be used to detect multiple orientations.
Inside the sensor are infrared emitters which are either reflected or not, depending on the orientation of the sensor.
By reading the output of the various pins you can easily determine the orientation of the sensor and your project.
תיעוד: