An example of how to store IoT data with MongoDB