{"product_id":"capacitive-soil-moisture-sensor-arduino-soil-moisture-sensor","title":"Hw-330 Capacitive Soil Moisture Sensor Arduino Soil Moisture Sensor","description":"\u003cp\u003eThis Capacitive Soil Moisture Sensor measures soil moisture levels by capacitive sensing, rather than resistive sensing like other types of moisture sensor. Capacitive Soil moisture sensor is made of a corrosion-resistant material giving it long service life. Insert capacitive soil moisture sensor into the soil and impress your friends with the real-time soil moisture data!. The product includes an on-board voltage regulator which gives it an operating voltage range of 3.3 ~ 5.5V. It is compatible with low-voltage MCUs (both 3.3V and 5V logic). To make it compatible with a Raspberry Pi, an ADC converter is required.\u003c\/p\u003e\r\n\r\n\u003ch2\u003eFeatures Of Capacitive Soil Moisture Sensor:\u003c\/h2\u003e\r\n\r\n\u003col\u003e\r\n\t\u003cli\u003eOperating Voltage: 3.3 ~ 5.5 VDC\u003c\/li\u003e\r\n\t\u003cli\u003eOutput Voltage: 0 ~ 3.0VDC\u003c\/li\u003e\r\n\t\u003cli\u003eInterface: PH2.0-3P\u003c\/li\u003e\r\n\t\u003cli\u003eDimension: 98mm * 23mm (3.86in x 0.905in)\u003c\/li\u003e\r\n\t\u003cli\u003eSupports Gravity 3-Pin interface\u003c\/li\u003e\r\n\t\u003cli\u003eAnalog output\u003c\/li\u003e\r\n\u003c\/ol\u003e\r\n\r\n\u003ch2\u003eApplications:\u003c\/h2\u003e\r\n\r\n\u003col\u003e\r\n\t\u003cli\u003eGarden plants\u003c\/li\u003e\r\n\t\u003cli\u003eMoisture detection\u003c\/li\u003e\r\n\t\u003cli\u003eIntelligent agriculture\u003c\/li\u003e\r\n\u003c\/ol\u003e\r\n\r\n\u003cp\u003e\u003ca href=\"https:\/\/wiki.dfrobot.com\/sen0193\/\" title=\"Capacitive_soil_moisture_sensor_sku_sen0193-dfrobot\" aria-label=\"Visit a webpage about Capacitive_soil_moisture_sensor_sku_sen0193-dfrobot\"\u003eProduct Wiki\u003c\/a\u003e\u003c\/p\u003e\r\n\r\n\u003cp\u003e\/***************************************************\u003cbr\u003e\r\nThis example reads Capacitive Soil Moisture Sensor.\u003cbr\u003e\r\n****************************************************\/\u003c\/p\u003e\r\n\r\n\u003cp\u003econst int AirValue = 520;   \/\/you need to replace this value with Value_1\u003cbr\u003e\r\nconst int WaterValue = 260;  \/\/you need to replace this value with Value_2\u003cbr\u003e\r\nint intervals = (AirValue - WaterValue)\/3;   \u003cbr\u003e\r\nint soilMoistureValue = 0;\u003cbr\u003e\r\nvoid setup() {\u003cbr\u003e\r\nSerial.begin(9600); \/\/ open serial port, set the baud rate to 9600 bps\u003cbr\u003e\r\n}\u003cbr\u003e\r\nvoid loop() {\u003cbr\u003e\r\nsoilMoistureValue = analogRead(A0);  \/\/put Sensor insert into soil\u003cbr\u003e\r\nif(soilMoistureValue \u0026gt; WaterValue \u0026amp;\u0026amp; soilMoistureValue \u0026lt; (WaterValue + intervals))\u003cbr\u003e\r\n{\u003cbr\u003e\r\nSerial.println(\"Very Wet\");\u003cbr\u003e\r\n}\u003cbr\u003e\r\nelse if(soilMoistureValue \u0026gt; (WaterValue + intervals) \u0026amp;\u0026amp; soilMoistureValue \u0026lt; (AirValue - intervals))\u003cbr\u003e\r\n{\u003cbr\u003e\r\nSerial.println(\"Wet\");\u003cbr\u003e\r\n}\u003cbr\u003e\r\nelse if(soilMoistureValue (AirValue - intervals))\u003cbr\u003e\r\n{\u003cbr\u003e\r\nSerial.println(\"Dry\");\u003cbr\u003e\r\n}\u003cbr\u003e\r\ndelay(100);\u003cbr\u003e\r\n}\u003c\/p\u003e\r\n\r\n\u003cp\u003e \u003c\/p\u003e\r\n\r\n\u003cp\u003e\u003cimg alt=\"Image result for Capacitive Soil Moisture Sensor Arduino Soil Moisture Sensor\" src=\"https:\/\/digilog.pk\/cdn\/shop\/files\/e7ceb7c1-a6ec-400b-b063-da7865166ec1.webp\" data-original=\"https:\/\/imgaz.staticbg.com\/images\/oaupload\/banggood\/images\/55\/80\/e7ceb7c1-a6ec-400b-b063-da7865166ec1.JPG\" loading=\"lazy\" data-files=\"e7ceb7c1-a6ec-400b-b063-da7865166ec1.webp\"\u003e\u003cimg alt=\"sen0193%20capmoisture%20b.jpg\" border=\"0\" height=\"581\" src=\"\/products\/capacitive-soil-moisture-sensor-arduino-soil-moisture-sensor\" width=\"587\" loading=\"lazy\"\u003e\u003c\/p\u003e\r\n\r\n\u003cp\u003e \u003c\/p\u003e","brand":"China","offers":[{"title":"Default Title","offer_id":43962415087681,"sku":"B75,IMP200,Th100,KRT59,A","price":150.0,"currency_code":"PKR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0727\/2805\/1777\/files\/Capacitive_Soil_Moisture_Sensor_Arduino_Soil_Moisture_Sensor.jpg?v=1779581176","url":"https:\/\/stem.pk\/products\/capacitive-soil-moisture-sensor-arduino-soil-moisture-sensor","provider":"stem.pk","version":"1.0","type":"link"}