Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Book2026
← ROS 2 for Agricultural RoboticsChapter 02

A DS18B20 temperature logger without ROS

InstructorDr. Redmond R. Shamshiri
AffiliationAssistant Professor of Robotics · University of Southern Denmark (SDU)
Study time35 minutes
Study companion. These editable notes, worked examples and exercises supplement the source material. They are not a verbatim video transcript or a reproduction of the book.

Study A DS18B20 temperature logger without ROS. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.

Learning Objectives

  • Explain the role of sensor calibration and soil measurements in the engineering system.
  • Calculate the worked quantity with consistent units.
  • Design a measurement that can reveal an implementation failure.

Study guide

Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.

Lesson focus: A DS18B20 temperature logger without ROS

Retain original data and timestamps so later filtering or threshold changes can be evaluated fairly.

Sensor calibration and soil measurements

A sensor reading depends on both the target property and the measurement environment. Calibration converts raw output to engineering units; validation tests whether that conversion holds for the soils and conditions of interest.

Model, units and assumptions

\[y=ax+b,\qquad e_i=\hat y_i-y_{ref,i}\]

a and b are fitted calibration coefficients; reference measurements and sensor readings must describe comparable material, depth and time. A linear fit is a model choice, not proof of linear response.

Worked engineering example

A teaching calibration θ = 0.0001·raw − 0.05 predicts 0.25 m³/m³ at raw 3000. This illustrative coefficient set must not be used for an actual probe without a calibration for that device and soil.

Practical task and evidence

Apply the following procedure to the topic of this lesson: A DS18B20 temperature logger without ROS.

  • Collect paired sensor and reference observations across the expected range.
  • Keep soil type, temperature, depth and method in metadata.
  • Validate with independent observations and inspect bias by condition.

Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.

Check your understanding

Question. With y = 0.02x + 1 and x = 50, what is predicted y?

Show worked answer

2 in the stated engineering units. The coefficients are meaningful only with their original units and range.

Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.

Summary

Sensor calibration and soil measurements: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.

Suggested Reading & Resources

  • Reading
    Book source: ROS 2 for Agricultural Robotics

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗
  • Reading
    FAO digital agriculture resources

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗