Add MCP9808 temperature sensor (#1169)

* Add MCP9808 temperature sensor

* Change from component to sensor; code fixes

- Change from component to sensor
- Change magic numbers to constants

* Fix incorrect logging levels

* Add precision to debug log

* Fix logging level

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>

* Fix bug with comparison to NAN

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
Harald Nagel
2020-10-26 11:24:26 -07:00
committed by GitHub
parent d97a9bf8e8
commit adb51cf733
5 changed files with 125 additions and 0 deletions