I have 1-wire DS2450 A/D numerical data available I would like to convert to binary for simple on/off notification. Can someone please give me some direction as to the proper script to do this for a metadata point?
If the input is <= 0.5 then output 0 binary
If the input is >0.5 then output 1 binary
I am not familiar with JS programming and syntax (last programming I did was 30 years ago in FORTRAN) and have tried several things with no success.
Thanks in advance!