This code was created at the 2014 civic day of hacking.  It reads from a beam break detector and posts the count to Xively.