Ok. Here’s the deal. I’m using OneWire and code from https://docs.particle.io/tutorials/projects/maker-kit/#wire-up-the-sensor for a Dallas DS18B20 temperature sensor.
And it all works fine, accurate and I’m able to move the data where I need.
But… the problem is that the code from docs.particle.io is using a delay of 1 second to wait for the read to actually come back from the sensor. So, therefore my photon is locked up for 1 second out of every 5. Thats 20% unresponsive time. Thats gonna kill me when I start getting feedback from clients saying that their machines aren’t responding 20% of the times when they initiate actions from their phones.
So, is this just the name of the game with Arduino and Particle where, in order to read from a sensor like temperature, you gotta just wait for it? Or, are there tricks out there to not lock things up while waiting for a reading?