www.keyestudio.com
The two photoresistor sensors are linked with A1 and A2, then
finish the experiment via photoresistor connected to A1. Let's read
its analog value.
(4) Test Code
/*
keyestudio Mini Tank Robot V2
lesson 3.1
photocell
http://www.keyestudio.com
*/
int sensorPin = A1;
int sensorValue = 0; // variable to store the value coming from the
sensor
void setup() {
// select the input pin for the photocell
87