01-05-2019, 03:42 PM
Hi Skwerl77, thanks happy new year to you as well.
That's a nice looking sensor, it should work on an analog port when set to 0-5v. Of course there's no code to map out the 2000ppm but you could still use it with the custom rules if you pull out a calculator for now. Later down the road I do plan to add some mapping for co2.
The analog pins reads 0-5v and translates that into a number from 0-1023, 1023 being 5v. In the custom rules for analog sensors you can select a value in this range. If you wanted to have something happen when the sensor read 1000ppm you would set the rule value to 511. If you want to trigger at 500ppm set the rule value to 255.
That's a nice looking sensor, it should work on an analog port when set to 0-5v. Of course there's no code to map out the 2000ppm but you could still use it with the custom rules if you pull out a calculator for now. Later down the road I do plan to add some mapping for co2.
The analog pins reads 0-5v and translates that into a number from 0-1023, 1023 being 5v. In the custom rules for analog sensors you can select a value in this range. If you wanted to have something happen when the sensor read 1000ppm you would set the rule value to 511. If you want to trigger at 500ppm set the rule value to 255.