Question: this is my current code and it isn't working. arduino sketch_ANALOG_2_intr int bluePin - 2; int greenPin = 4; int redPin = 6; int buzzerPin

this is my current code and it isn't working.  this is my current code and it isn't working. arduino sketch_ANALOG_2_intr
int bluePin - 2; int greenPin = 4; int redPin = 6;
arduino

sketch_ANALOG_2_intr int bluePin - 2; int greenPin = 4; int redPin = 6; int buzzerPin = 8; void setup( { Il put your setup code here, to run once: Serial.begin(9600); pinMode(bluePin, OUTPUT); pinMode(greenPin, OUTPUT); pinMode(redPin, OUTPUT); pinMode(buzzerPin, OUTPUT); void loop() { 7/ put your main code here, to run repeatedly: int sensorValue = analogRead(AO); float X-sensorValue*(5.0/1023.0); if(X=3 && X-4) { no Tone(buzzerPin); digitalWrite(bluePin, LOW); digitalWrite(greenPin, HIGH); digitalWrite(redPin, LOW: else { tone(buzzerPin, 2000): digitalWrite(bluePin, LOW); digitalWrite(greenPin, LOW); digitalWrite(redPin, HIGH); delay(500); Done compiling Sketch uses 5519 bytes (2%) of program storage space. Maximum is 253952 by Global variables use 218 bytes (2%) of dynamic memory, leaving 7974 bytes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!