A Node-RED flow to temporarily save data of a sensor and to upload it if a toggle gets activated. The flow can be easily adapted and scaled for different sensors.
Simply import the JSON-file. For more information visit: https://nodered.org/docs/user-guide/editor/workspace/import-export