My CH4 sensor giving me HEX string for different functions. i want to convert it so other people can easily read it.
For example: 50514643F322020 (Serial Number) for one function
and 01C8 (Concentration of CH4 in ppm) for second function.
Also, the value concentration of CH4 change for different gas solution.
can somebody help me in this regards??
So when i send a query to my slave (CH4 sensor), it sending data into ```
505146434F322020 which mean is "PQFCO2" my sensor serial name and 01C8 means 456 ppm.
I think I get it, even if the OP hasn't filled up my table form post #4 (@ashish_senger Why, by the way?).
ox01c8 is indeed decimal 456 from post #6 and 505146434F322020, once interpreted as hex and broken into bytes, encodes the string "PQFCO2 " (with 2 trailing spaces).
What is unclear, is whether the OP is receiving ASCII strings, but I think that it's the case.