I want to develop an Android app for home security surveillance that will monitor a door. I want to connect a switch reed to the USB port of an android smartphone.
It's possible to monitor this hardware switch connected to the smartphone USB port? The app will send a SMS when the contact is open.