maintain a switch position when arduin is off/sleep mode