Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water. Dear Sara
<div> Following are the asnwers:</div>
<div>1.We are getting long Garbage data like some art ..square, or some numbers some times like…..for long..</div>
<div>2. We are not getting data like0013.</div>
<div>3.We already checked with change of Address (0 to 1) and used the example program d_simple_logger but the same garbage data is coming.</div>
<div>4.We checked with this program(attached)…..also….<wbr />it says “NO SENSOR Found”.</div>
<div></div>
<div>Now we want to check the sensor whether it is working ..because we checked the voltage output from the Data pin ..it’s only 0.5v around when we give 5v to the power pin of the sensor. When we give a 12v power pin, it gives 0.8v sensor data output. Is this correct? Please give me some advice.</div>
<div>Awaiting your quick reply.</div>
<div></div>
We wrote Program for Interfacing Hydros sensor 21 with Arduino Uno board using SDI-12 interface and saw the result on serial monitor . We tried a lot in implementing a program for connecting sensor directly to the digital Pin (Pin7/Pin2) of the Arduino UNO board using SDI-12 interface and viewing the result on the serial monitor. We found only garbage data coming on the serial Monitor.
We uploaded program here.
#include <SDI12.h>
const int dataPin = 2; // Connect the data pin to digital pin 2
SDI12 sdi12;
void setup() {
Serial.begin(9600);
sdi12.begin(dataPin);
}
void loop() {
// Request data from the sensor
sdi12.sendCommand(“0M!”);
// Wait for the sensor to respond
delay(1000);
// Read and print the sensor response
while (sdi12.available()) {
char c = sdi12.read();
Serial.print(c);
}
// Wait for a moment before taking the next reading
delay(5000);
}
Can you guide whether we require any digital hardware between Hydros sensor21 and Arduino Uno board?
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalize your experience. You can manage your preferences, but blocking some cookies may impact site performance and services
Essential cookies enable basic functions and are necessary for the proper function of the website.
CleanTalk offers effective spam protection and website security solutions to enhance user experience.
Service URL: cleantalk.org (opens in a new window)
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
SourceBuster is used by WooCommerce for order attribution based on user source.
You can find more information in our Cookie Policy and Privacy Policy.