I am wondering the pinout for this sensor.
there's the website I bought it from. I tried following its pinout, but I only got 15 as the serial port result.
void setup() {
Serial.begin(9600);
}
void loop() {
analogRead(A1);
Serial.println(A1);
}
Any help appreciated,
squidsirymchenry
tzijie
October 14, 2017, 6:00pm
3
or u could also use
Serial.println(analogRead(A1));
if u do not need to use the readings later
system
October 14, 2017, 7:45pm
5
You'll have to excuse @tzijie ; s/he hasn't got the hang of personal pronouns or the shift key
Or you could also use
Serial.println(analogRead(A1));
If you do not need to use the readings later
@ spycatcher2k that didn't work
I will try the other one
@tzijie
It worked!! Thank you
system
October 14, 2017, 7:51pm
7
@ spycatcher2k that didn't work
You didn't try hard enough.
"That didn't work" is lame
@AWOL
well technically I did, but the second program showed the results better, but now, I'm trying to stop my program with a button and restart it when it is pressed.