Skip to content

MCP9808 temperature sensor~

This feature is not included in precompiled binaries

When compiling your build add the following to user_config_override.h:

#ifndef USE_MCP9808
#define USE_MCP9808      // [I2cDriver51] Enable MCP9808 temperature sensor (I2C addresses 0x18 - 0x1F) (+0k9 code)
#endif

the MCP9808 is an I2C temperature sensor. Tasmota support up to 8 devices.

Configuration~

Wiring~

MCP9808 ESP
VCC 3.3V
GND GND
SDA GPIOx
SCL GPIOy

Tasmota Settings~

In the Configuration -> Configure Module page assign:

  1. GPIOx to I2C SDA
  2. GPIOy to I2C SCL

After a reboot the driver will detect automatically up to 8 MCP9808 and display sensor readings.

and in MQTT topic (according to TelePeriod):

{"Time":"2020-01-01T00:00:00","MCP9808":{"Temperature":24.7},"TempUnit":"C"}

Breakout Boards~

MCP9808

Datasheet~

MCP9808