Hey Ella,
Here’s another test you can perform, if you can upload and run this very simple script that I’ve written below so we can check to see whether there’s a proper output from the sensor that should assist in troubleshooting (Note: You can use CTRL+SHIFT+L to access the serial plotter to graph this output).
#define READ_PIN A1
void setup() {
Serial.begin(9600);
pinMode(READ_PIN, INPUT);
}
void loop() {
Serial.println(analogRead(READ_PIN));
delay(20);
}
Bryce
Core Electronics | Support