int sensorPin = A3; void setup() { Serial.begin(9600); delay(300); } void loop() { int sensorValue; sensorValue = analogRead(sensorPin); sensorValue = map(sensorValue, 0, 1023, 100,0); Serial.print("Soil moisture: "); Serial.print(sensorValue); Serial.println(" %"); delay(300); } ***เกิดการผิดเพียนค่าที่ครูให้มาต้องสลับกัน ที่ค่าน้อย และ ค่ามาก จาก (0,100) เปลี่ยนมาเป็น (100,0) ถึงจะถูกต้อง***