I’ve gotten these very simple 433 MHz sensors with two states, one for open, one for closed.
They work all over the place, except for my side-by-side fridge.
I suspect the two sensors / magnets are too close to each other (they are placed on each door, ~20 cm apart), as seen here:
So I am considering an alternative. Maybe something like a mechanical switch
connected to a Wemos D1 mini, anybody else that has a good idea?
I guess I should place a resistor like 10 kOhm’s on it or could I just use GPIO0 and GPIO2?
My idea was that when the arm was open, it will be ‘on’, so that it will be off most of the time, when the fridge doors are closed, and thus put pressure on the arm.