I have a refrigerator in my garage whose freezer door sometimes pops open if you slam the fridge door too hard. There is breastmilk in there so it’s critical that it not stay open for too long. I bought a multipurpose sensor with visions of using it as a contact sensor to alarm after N minutes, but there seems to be too much space between the freezer door and the fridge itself for it to work that way.
What is the minimum distance between the two pieces of the sensor to register as “in contact”? (I can’t seem to find this information anywhere.)
Assuming the above value is too low to work for my use case, would it be possible for me to tap into the accelerometer instead to detect when the orientation of the sensor is greater than N degrees away from the door-closed state?
Thanks in advance for your help! I’m new to this stuff.