The wiring diagram illustrates the wiring configuration using the ecobee EB-EMS-02 thermostat with ecobee EB-RSM-01 Remote Sensor Module to perform temperature control with temp averaging, occupancy sensing (using a motion sensor), on-demand ventilation (using a CO2 sensor) and light control output.