Fix AmbientTemperature access sensor
Improve code styling