Develop a smart system to monitor environmental conditions (temperature, humidity, etc.) and control devices (e.g., fans, heaters) based on real-time data. The system should send data to an MQTT broker, which can be accessed remotely, and provide alerts when certain thresholds are exceeded.