About
Read moreThe project is about KY-026 flame sensor, it tells you if there is fire, it have Analog pin
so you can analogRead()
it, and it have digital pin, so you can digitalRead()
it.
It have G must be connected to GND and + must be connected to VCC (V5).
PinoutD0 Is the digital pin,
A0 Is the analog pin,
G Is GND,
+ Is VCC (V5).
Syntaxso you can take the analog value by this syntax :
int variable_name = analogRead(analogPin);
It will give you a number from 0-->1023 because it uses 10 bit while turnig from
A-->D.
and you can take the digital value by this syntax :
int variable_name = digitalRead(digitalPin);
Comments
Please log in or sign up to comment.