logo

Crowdly

Browser

Add to Chrome

int sensorPin = A0; int ledPin = 13; int sensorValue = 0; void setup() { p...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

int sensorPin = A0; int ledPin = 13; int sensorValue = 0;

void setup() {

pinMode(ledPin, OUTPUT);

}

void loop() {

sensorValue = analogRead(sensorPin);

digitalWrite(ledPin, HIGH);

delay(sensorValue);

digitalWrite(ledPin, LOW);

delay(1023 - sensorValue);

}

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learning.devinci.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome