UA
Usman AR @usmanar.eng
November 13, 2026 (1 week ago) • 2 min read
Embedded & Firmware

Asair AGH3485 Library: Easy Modbus RTU Sensor Integration

For IoT developers and automation engineers, dealing with industrial-grade sensors can sometimes be a bit of a headache. One of the most common—and rock-solid—protocols on the factory floor is Modbus RTU over RS485.

Recently, I was working on a project that required precise temperature and humidity readings from an Asair AGH3485 sensor. While the hardware itself is fantastic for industrial use, writing the Modbus communication code from scratch for every single project just isn’t fun (or efficient).

So, I decided to wrap it all up into a neat package and release the AsairAgh3485 library for everyone to use!

What is the AsairAgh3485 Library?

It’s an open-source library I built to make integrating microcontrollers with the Asair AGH3485 (or similar sensors using Modbus RTU RS485) an absolute breeze.

Instead of pulling your hair out over register addresses, byte parsing, or manual CRC calculations, you can just call a few simple functions from this library to get accurate temperature (Celsius) and humidity (RH) readings instantly.

Key Features

  • Lightweight & Easy Setup: Designed to be memory-friendly, making it a perfect fit for microcontrollers.

  • Modbus RTU Abstracted: You don’t have to handle raw Modbus data manually anymore. The library takes care of sending the requests and parsing the sensor’s responses for you.

  • Stable & Reliable: It includes built-in timeout handling and data validation to ensure you’re getting valid readings, minimizing glitchy data in your monitoring systems.

How to Get Started

You can check out the source code, documentation, and usage examples right over on my GitHub repository:

🔗 GitHub Repository: usmanargit/AsairAgh3485

I’ve included clear installation instructions and example sketches in the repo, so you can get your sensor up and running in just a few minutes.

Let’s Collaborate!

I’m releasing this library to give back to the awesome open-source community that has helped me so much along my own coding journey.

If you’re building smart agriculture setups, warehouse monitoring systems, or factory automation using these Asair sensors, feel free to give the library a spin. If you spot a bug, have a cool feature idea, or want to optimize the code, please don’t hesitate to open an Issue or submit a Pull Request.

And hey, if you find this library useful for your projects, dropping a ⭐ Star on the repo would be hugely appreciated!

Have you had any fun (or frustrating) experiences dealing with Modbus RTU sensors? Let’s chat in the comments below!

UA
Written by Usman AR

Independent Hardware & Software Engineer. Available for remote C++ contracts, embedded firmware, computer vision, and IoT architectures.

Contact
JOIN THE DISCUSSION

Leave a Reply

Your email address will not be published. Required fields are marked *