水位传感器 Water Sensor for Arduino
水位传感器(Water Level Sensor)有十根露铜的走线,其中五根是电源线,剩余五根是感测线。这些迹线...
voidsetup() { // put your setup code here, to run once: Serial.begin(9600); } voidloop() { // put your main code here, to run repeatedly: temp=(long)analogRead(0); data=(temp/650)*4; Serial.print("the depth is:"); Serial.print(data); Serial.println("cm"); delay(1000); ...
void setup() { // put your setup code here, to run once: Serial.begin(115200); myservo.attach(Pin_servo); pinMode(Pin_Light, OUTPUT); //灯,输出 pinMode(Pin_Beep, OUTPUT); //蜂鸣器,输出 pinMode(Pin_Pump,OUTPUT); //上水水泵,输出 pinMode(Pin_waterHighSensor3,INPUT); //水位传感器...
water!");}else{Serial.println("Status: Soil moisture is perfect");}delay(1000);// Take a reading every second for testing// Normally you shoul take reading perhaps every 12 hoursSerial.println();}// This function returns the analog soil moisture measurementintreadSensor(){digitalWrite...
/* Water level sensor * by Hanie Kiani * https://electropeak.com/learn/ */ const int ...
/* # Example code for the moisture sensor # Editor : Lauren # Date : 13.01.2012 # Version : 1.0 # Connect the sensor to the A0(Analog 0) pin on the Arduino board # the sensor value description # 0 ~300 dry soil # 300~700 humid soil # 700~950 in water */ void setup(){ Seri...
Please Don't Code: Generate Code for Arduino and ESP32. Boost your coding with our AI code generator. Save time, easy development for embedded systems.
Installation of Ultrasonic Sensor Screw Type or Sifter Clamping ; Screw Size: M68*2. Warranty 12 Months Transport Package Atech Standard Carton Box Specification 1KG Trademark Atech sensor Origin China HS Code 9026100000 Production Capacity 20000 ...
This Sample code is for testing the Auto flower watering kit. Product: EcoDuino - An auto plant kit SKU : KIT0003 Library:AutoWatering Library Functions: 1.Power a pump to water flowers according to the humidity and temperature 2.Use the DHT11 Sensor to test the ambient humidity and temper...