zg_co2
pub fn decode(data: [u8; 5]) -> Result<SingleReading>
Decodes a message from the sensor.
let decoded = zg_co2::decode([0x50, 0x04, 0x57, 0xab, 0x0d]);
An error will be returned if the message could not be decoded.