Cant save to Firebase Database


Im trying to create a simple app to add to a Firebase Database.

Write the temperature then store this in database with a timestamp. But for some reason it wont work. Ive tried multiple different ways and checked all the docs on the Firebase website but nothing worked. Any help would be greatly appreciated. Thanks