I’ve been looking at the source code thinking there are going to be a couple of lines, but unfortunately I’ve stumbled on an entire project. Generally, for this kind of project I would be seeing diagrams or some sort of documentation that helps out anyone else who isn’t the original developer to continue the work. Without these, lots of time would be required to understand how the code has been built and even more so for debugging the issue.
Here’s a good suggestion I have for you that saved me from difficult situations I had in the past:
Identify the irreducible components of your project and put them on paper.
Create scripts for running each irreducible component of your project.
Run each script that you’ve created and iterate them until you catch a component not working correctly and then fix it.
Create other scripts (or depending on your architecture, run the previous scripts concurrently) that test different components together. Test and verify until you end up with all components together and working.
This advice should help you find the current issue you have. Even better than what we have now, you’ll be able to come up with good information on what’s wrong with the sensor (if there’s any in the first place) and then we can correct it immediately.
I’m waiting to hear what you’re thinking of this and if this helps you with your current problem.