How to receive data

Use MQTT

This should help get you started...