Electric Imp code for IoT device for build monitoring