Check data availability before sending to Raspberry Pi