sunfounder / SunFounder_SensorKit_for_RPi2

SunFounder Sensor Kit V2.0 for Raspberry Pi 2
GNU General Public License v2.0
114 stars 85 forks source link

22_gas_sensor #8

Open argometric opened 4 years ago

argometric commented 4 years ago

How come Python script says danger on higher numbers while C says safe, C also does not trigger the buzzer. Think there is an issue somewhere in the code.

For anyone having issues, you need to turn the shaft of the pontetiometer to raise and reduce the concentration level, mine was on max and printed 255 all the time. This needs to be turned on the PCF8591 not on the gas sensor. Maybe update this in the description as it was not perfectly clear.