70mm for a reed switch is pretty damned far - I doubt this will work unless you're able to get one part of it in closer (maybe the reed part on the closet side, right next to where the door travels, and a beefy magnet on the door?). I use reed switches, and found I needed to get the magnet (a rectangular rare earth one of considerable strength) like 1 cm away from the switch for reliable operation - though my reed switch might be less sensitive than some?
I see a few options:
Reed switch, with some bit of cleverness to get the magnet and switch mounted.
LDR in the bottom of a can or tube facing out and located close to the door. This, of course, will present a problem if the lights outside the wardrobe are off, but you still want light to find things inside it, though I'm struggling to think of a case where this would matter. In any event, like any sort of light sensing, the exact position of the sensor, and the size, shape, and orientation of the light-shield around it will make a big difference.
Physical switches, probably a micro-switch of some sort. (wouldn't this be a good use for one of those micro-switches with the roller-wheel on the end of the arm? Or are those scarce/expensive if you don't have them on hand?)
Use a PIR motion sensor, on the reasoning that things rarely move inside a wardrobe while the door is closed. Of course, you'd need to give it some grace period, otherwise you'd have to dance and wave your arms while choosing what to wear.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
70mm for a reed switch is pretty damned far - I doubt this will work unless you're able to get one part of it in closer (maybe the reed part on the closet side, right next to where the door travels, and a beefy magnet on the door?). I use reed switches, and found I needed to get the magnet (a rectangular rare earth one of considerable strength) like 1 cm away from the switch for reliable operation - though my reed switch might be less sensitive than some?
I see a few options: