... float voltage = sensorValue * (5.0/1023.0); // print out the value you read: if (voltage > 1.5) { Serial.print("Light"); Serial.println(); delay(5000); } ...
確定! 回上一頁