I am using ESP8266 to have a simple control system for temperature and humidity. Right now i use some cheap DHT11 i ordered of ebay. Its working fine but i read that with time, this sensor will be less and less acurate so i am looking into possible solutions. Help me decide between:
1) Replace the DHT11 with a new DHT11 every few months or years. If this is the best solution, how often i would have to replace the sensor to have it accurate to 1C. Meaning if the real temp is 30C, i am ok with it showing 29C or 31C, but anything more is not ok. If i replace the sensor once a year, will i keep that 1C accuracy ?
2) upgrade DHT11 with a better more expensive sensor, that will remain accurate longer. If this is a way to go i have a couple of things that the new sensor must have. It would be great if it would have the same 3 pin setup as my existing DHT11 - this way i dont have to put the device apart, i can just swap the sensor which can be done easily. And, it would be great if the sensor could be run on 5V, same as DHT11. Like i said, getting to the actualy ESP8266 and swap cables is hard cause its inside a closed box. Sensors are outside and its easy to swap them. As far as temps go, i need it to be able to read between 10C and 40C, humidity between 0% and 100%. I would like libraries to be written for that sensor so i dont have to deal with the new code.