This is branched from @markleary's pull request that avoids bad readings. I added the DHT11,22,2302 airquality = 0 fix to make a more complete update to the way DHT readings are handled. I also began implementing MQTT Publishing Support using the MQTT Plugins Helper functions. There is currently no config for the topic ("octoprint/plugins/enclosure") but it will work out of the box as long as the MQTT plugin is installed and configured. I also tested to verify it still runs as expected without the MQTT Plugin. So adding this shouldn't break anything or force MQTT plugin to be a dependency.
This is branched from @markleary's pull request that avoids bad readings. I added the DHT11,22,2302 airquality = 0 fix to make a more complete update to the way DHT readings are handled. I also began implementing MQTT Publishing Support using the MQTT Plugins Helper functions. There is currently no config for the topic ("octoprint/plugins/enclosure") but it will work out of the box as long as the MQTT plugin is installed and configured. I also tested to verify it still runs as expected without the MQTT Plugin. So adding this shouldn't break anything or force MQTT plugin to be a dependency.