Arduino sketches for the DIY sleep monitor