this is the firmware for the dehumidifier sensor module. a STM8S003 micro-controller reads the temperature and relative humidity measurements from an AHT20 humidity sensor using I²C, and sends it to the Aplatec DH 10 dehumidifier using a proprietary unidirectional IR-like pulse-width modulated protocol.