this kind of optic fiber is probably only plastic so for a full DIY , you can use also fishing wire with a big power led or an old chistmass tree optic fiber lighted.....
I hate to disappoint you @micah but @Mike-Musskopf has got a point:
MQ* sensors are power hungry. You may want to connect everything up to 240V via a small PSU. There is a big thread on mysensors about air quality detection.
DHT is not the best sensor for a battery application. Please check BME280 (pressure, temp and hum) or Si7021 (temp and hum) - these would be my favourite sensors for low power consumption.
Small tip - your Arduino Pros must be 3.3V and not 5V for the battery usage.
@yoonie said:
For the pro mini version, should i create another Openhardware project, or should i put it here, in the already existing project?
Might be better to create a new project as they uses a different set of design files.
I think the comment in the routine
void measureBattery() {
// R1 = 1MOhm, R2 = 220 kOhm
Should be
void measureBattery() {
// R3 = 1MOhm, R2 = 220 kOhm
(R3)
Is it possible to add (comment out) some lines how to calculate the battery percentage and send this via gw.sendBatteryLevel (batteryPcnt)
Great sketch!
Well I changed the connection type for the sensors due to the above issue.
Tested and again after 2.5 days, it locked out on a sensor com error. So after some thought, I realized, (not sure why I didn't before) the system is not going to be 100% bullet proof, so instead of moving to a hard fault, I recoded the error handling section of the sketch to attempt to handle the occasional hiccups in reading the sensors. Pushed new sketch to Github and am testing now.
It will interesting to see just how many times the readings fail.
I shall see.....