Linux I2C Temperature Driver Development

Job ID: 40343551

Budget: ₹600 – ₹1,500 INR

I need a clean, well-documented Linux kernel module in C that supports the TMP102 I2C temperature sensor on kernel 5.x and newer. The driver must initialise the bus, poll the device once every hour, push readings to userspace through a tidy sysfs interface, and flag any data that strays outside the expected range. Robust error handling for that specific condition is essential; if you can also accommodate other I²C-level issues later, that would be a nice bonus but not mandatory for the first drop.

Please follow MISRA-style guidelines where practical, keep the code easy to read, and supply a Makefile so I can build and insert the module on a Raspberry Pi test board. After installation I should be able to:

• modprobe the module without warnings
• cat the temperature value from /sys/... and see fresh data each hour
• trigger and observe the out-of-range alert path

Deliverables
• Complete driver source (.c/.h)
• Makefile and concise build instructions
• Short test notes showing how you verified the hourly read on a Pi (a tiny user-space helper app would be welcome)

If you have solid kernel-space I²C experience and can turn this around quickly, let’s talk.