Reader small image

You're reading from  Arduino IoT Cloud for Developers

Product typeBook
Published inNov 2023
PublisherPackt
ISBN-139781837637171
Edition1st Edition
Right arrow
Author (1)
Muhammad Afzal
Muhammad Afzal
author image
Muhammad Afzal

Muhammad Afzal is a senior software engineer, with more than 14 years of experience working on web-based and IoT systems in multinational organizations. He always enjoys working and solving real-world business problems with technology. He provides freelance services to IoT-based product companies to write technical reviews and projects, and he also provides consultancy to organizations. In his free time, Muhammad creates videos and courses for YouTube and Udemy. He also runs a maker movement in his region for young students to boost their interest in adopting the latest technologies.
Read more about Muhammad Afzal

Right arrow

Perfecting sensor calibration

Sensor calibration is a very important aspect of product development, especially when you have a plan to deploy your product in a real-time environment. So, before moving on, first we need to calibrate the capacitive soil moisture and DS18B20 sensors. The soil moisture sensor operation varies from area to area due to air humidity and water levels.

So firstly, we will calibrate the soil moisture sensor by taking the values of sensors in the air and then putting sensors in the water. These values will be used to bind the final readings and, finally, we will convert the soil moisture sensor value from 0 to 100% via the map method. The soil moisture sensor is an analog sensor, so there is no requirement for an extra helping library, except the ADS module library, which is shown in the following figure with the name Adafruit ADS1X15.

Figure 9.9 – ADS1115 library

Figure 9.9 – ADS1115 library

Here, we need to install a library for ADS1115/ADS1015 in...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Arduino IoT Cloud for Developers
Published in: Nov 2023Publisher: PacktISBN-13: 9781837637171

Author (1)

author image
Muhammad Afzal

Muhammad Afzal is a senior software engineer, with more than 14 years of experience working on web-based and IoT systems in multinational organizations. He always enjoys working and solving real-world business problems with technology. He provides freelance services to IoT-based product companies to write technical reviews and projects, and he also provides consultancy to organizations. In his free time, Muhammad creates videos and courses for YouTube and Udemy. He also runs a maker movement in his region for young students to boost their interest in adopting the latest technologies.
Read more about Muhammad Afzal