If the sensor behaves as datasheet shows: connector 4, pins 1,2,4 are used
Make "pwm_value" unsigned long (it is microseconds..)
Add a timout parameter of eg. 2 secs.
If the sensor is working according to datasheet, PWM should work.
To test this (without a scope) connect the output to mic in on a PC - listen for ‘clicks’ every second
Make sure the sensor gets enough power. Arduinos 5V-supply should be OK
.. yes, thank you very much, now I get a signal, and it reacts to co2.
But it is only stable, if the oszilloscope is connected too. Does this make sense?
thanks, probably some connection was wrong - now I get a good pwm signal,
although the calibration seems not to fit with the datasheet.
I attached the UART Comunication protocol. (I havo no oscilloscope at my place, so I could not look for this signal on it)
I have never used this UART Comunication - are there example programs which can be easily adopted to this protocol?