This Tutorial explains about how to send/receive data between Google Firebase and Node-RED. Node-RED being preinstalled in Raspbian allows you to even control the GPIO pins of Raspberry Pi over internet. Even the sensor data can be received using Node-Red from Raspberry Pi to Google Firebase.
Comment Down below for any queries.