Read CO2 concentration from mh-z19 sensor on the Raspberry Pi & handle it. Detect Raspberry Pi model automatically and read the value from an appropriate serial device.
The output of the command had single quotes, which are not allowed in the JSON standard. So I tried to fix this by encoding Python dict as JSON and outputting that.
The output of the command had single quotes, which are not allowed in the JSON standard. So I tried to fix this by encoding Python dict as JSON and outputting that.