Get value from temperature sensor and store it in a database

This SmartApp allows you to store it in a Google Sheet, but it will only log the temperature when it changes.