Update tempbug-device.nut

I guess you can't just release code into the public domain :(

Also modified code so the battery will last longer