Soil Moisture sensor with Arduino in Tinkercad | how to use soil moisture sensor in Tinkercad Circuit diagram: Arduino Sketch: // C++ code // int moisture_data = 0; void setup() { pinMode(A0, INPUT); Serial.begin(9600); pinMode(12, OUTPUT); pinMode(6, OUTPUT); } void loop() { moisture_data = analogRead(A0); Serial.println(moisture_data); if (moisture_data < 21) { digitalWrite(12, HIGH); digitalWrite(6, HIGH); } else { digitalWrite(12, LOW); digitalWrite(6, LOW); } delay(10); // Delay a little bit to improve simulation performance }
ESP32 Publish Sensor Readings to Google Sheets In this tutorial, we’re going to learn about how to publish sensor data to Google Sheets using the ESP32 board. As an example, we’ll publish temperature, humidity, readings using the DHT11 sensor to a Google Sheets spreadsheet we’ll be using IFTTT. Project Overview First, the ESP32 connects to your Wi-Fi network Then, the DHT11 takes the temperature and humidity readings; ESP32 communicates with the IFTTT Webhooks service that publishes the readings to a spreadsheet on Google Sheets that is saved in your Google Drive’s folder Creating Your IFTTT Account This project is created by using IFTTT.IFTTT integrates with Google Sheets. So, the first step is creating an account on IFTTT if you don’t have one. Creating an account on IFTTT is free! Go to the official site: ifttt.com and enter your email to get started. Creating an Applet Now let's see how to create a new applet. Follow...