GY-39 Environment Sensor
The gy39 sensor platform reads the GY-39 module (datasheet): illuminance from
its MAX44009 and temperature, pressure, humidity and altitude from its BME280, all through the module’s own
microcontroller. I²C is required.

# Example configuration entrysensor: - platform: gy39 temperature: name: GY-39 Temperature humidity: name: GY-39 HumidityConfiguration Variables
Section titled “Configuration Variables”- illuminance (Optional): Illuminance in lux. All options from Sensor.
- temperature (Optional): Temperature in °C. All options from Sensor.
- pressure (Optional): Air pressure in Pa. All options from Sensor.
- humidity (Optional): Relative humidity in %. All options from Sensor.
- altitude (Optional): Altitude in metres, as calculated by the module. All options from Sensor.
- address (Optional, int): The I²C address of the module. Defaults to
0x5B. - update_interval (Optional, Time): The interval to read the module.
Defaults to
60s.
Wiring
Section titled “Wiring”

The module supports several modes. ESPHome uses the I²C mode of its microcontroller, which reads both chips for
you. Select it by connecting pin S0 to GND (mode 2, MCU_IIC):

The CT and DR pins are then the I²C bus:
CT→SCLDR→SDA