arduino code for NWatch project