sinatra and sequel based app for device readings