Added MongoDB logging for temperature.