Check Battery Level for Door Sensors

Please see the sticky post - particularly section 11 on formatting code.