I'll bump this, because it helped me solve a seemingly difficult problem with random errors.
Node-red started to throw the error "EINTR: interrupted system call, read". At first I didn't find the cause, because it started some time after I had included the ds18b20 node. Apparently it was caused by the way the ds18b20-node was handling requests.
@nrbrt Great small scipt!
The service has been running flawlessly ever since I implemented it.