Code for Edinburgh Hacklab's sensor network