magnetic contact switch integration
magnetic contact switch integration

-magnetic contact switch now works, pulls high AnalogRead when switch contacts are together (door is closed), for reference.
-reworked central logic for the door angle, only sensing for door angle when the door is initially opened from a closed state, calibrating to 0 degrees displacement from the closed state every time. Thus, door angle is calibrated by each door closing, and effects due to drift are minimized

TO DO: add a button/interface during the setup loop to be able to set up directionality of people flow. QOL improvement: set maximum door angles (so that if drift becomes so erratic, we can recommend a door close to re-calibrate)

davidiot/Turnstyle,davidiot/Turnstyle