# Data Collection and Reliability

**URL:** <https://community.purpleair.com/t/data-collection-and-reliability/8929>\
**Category:** Data\
**Created:** [June 20, 2024, 4:05pm UTC](https://community.purpleair.com/t/data-collection-and-reliability/8929 "2024-06-20T16:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PurpleAir](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/purpleair/32/176_2.png) [@PurpleAir](https://community.purpleair.com/u/PurpleAir)\
**Post date:** [June 20, 2024, 4:05pm UTC](https://community.purpleair.com/t/data-collection-and-reliability/8929/1 "2024-06-20T16:05:00Z")

</div>

If you’re running a sensor for data collection purposes and want to ensure that you don’t experience any data loss, there are a few things you’ll want to consider. The following article offers considerations on power status, WiFi connection, and SD card data collection.

* * *

## Power Status

Whether you’re collecting data via an SD card or over the internet, PurpleAir sensors need to be supplied with appropriate power to function. Any interruption in power to the sensor will cause data to be lost for that period of interruption. Power issues can be difficult to diagnose because even if the sensor works when first set up, the issue may present itself later. When collecting data over an extended period, you’ll want to closely consider the points below to minimize the chances of this happening:

1. You will need to ensure that the power requirements for PurpleAir sensors are always fulfilled. Those power requirements are as follows: 5V USB Micro, 0.18A continuous, 600mA peak. Further information is available in this [community article](https://community.purpleair.com/t/q-how-much-power-does-a-purpleair-sensor-draw-and-how-much-bandwidth-data-does-it-use/847).

2. Many people/organizations run sensors [off the grid](https://community.purpleair.com/t/off-the-grid/119) using battery or solar setups for power. Due to location, this can sometimes be necessary. However, errors can be common in these setups due to the number of components involved (e.g. a solar panel with a voltage controller and battery) and their complexity. When running a battery or solar setup, we recommend the following:

3. In the event of extreme weather or power loss, you’ll want to make sure that your sensors are able to reconnect to power.

* * *

## Getting Data Using a WiFi Connection

If you plan on collecting data via the PurpleAir Map or the API, your sensors will need to be connected to a WiFi network with an internet connection. This includes setups using a mobile hotspot. If the connected network loses internet connection or your sensors become disconnected from WiFi, they will stop reporting. If microSD cards are inserted and the sensors still have power, they will still record data to their microSD cards. However, this data will not be available on the map. More information is available on our [FAQ](https://community.purpleair.com/t/q-does-sd-card-data-get-uploaded-to-the-map/8923) page.

> Mobile hotspots experience problems more frequently than traditional WiFi networks. If you’re planning on using a hotspot, take extra care to follow the steps below and ensure your setup is functioning properly.

1. Check your sensors regularly to ensure they are still connected to PurpleAir servers. This is quite easy to do as long as you plan on having the devices connected consistently. All you have to do is check [map.purpleair.com](http://map.purpleair.com) and ensure your devices are still online. If you plan on registering devices as private, they will still be viewable. Check out [View Your Sensor on the Map](https://community.purpleair.com/t/view-your-sensor-on-the-map/3149) for more information.

2. In the event of an internet outage, check your devices to ensure they successfully reconnected to the internet. Although uncommon, sensors can remain disconnected once the internet is restored.

* * *

## Getting Data With a MicroSD Card

SD-capable sensors can record data to a microSD card. This can be used to obtain data in locations without WiFi or as an alternative source of data if your sensors lose internet connection. If you plan on collecting data via SD cards in your devices, there are a few issues you can run into. These can include SD hardware not being detected properly, data not recording to the microSD card, or SD data not appearing where it should be. To combat these issues, there are a few things you should consider.

1. If recording data to microSD cards is a requirement of your use, make sure to purchase SD-capable PurpleAir sensors. Applicable models include the PurpleAir Flex, Zen, and Classic-SD. The Classic comes without a microSD reader by default, and the SD variant must be selected using the dropdown box on the product page.

2. Examine our [SD Card Logging and Troubleshooting](https://community.purpleair.com/t/sd-card-logging-and-troubleshooting/543) article to ensure you’re aware of proper behavior and common issues you may run into.

3. Test the sensors before deploying them to ensure SD data is being properly recorded.

4. Set up a regular interval at which to check on the SD cards. This process would include pulling out the cards and plugging them into a reader to ensure that data is being written as intended. As with the suggestion above, you must be okay with a loss of data equal to the chosen interval. If your interval is two days, you could experience up to two days of data loss if an issue has occurred.

5. When using SD cards, all data from a device should be written to .csv files on the cards. However, it is possible that data may be written to .log or .txt files in addition to, or instead of, the CSV files. To find any recoverable data, we always recommend using the [PurpleAir Utility’s SD Data Tool](https://community.purpleair.com/t/the-purpleair-utility/673#p-1205-merge-and-clean-sd-card-data-with-the-sd-data-tool-9) on files recovered from microSD cards.

* * *

## Learn More

[API Landing Page](https://community.purpleair.com/t/api-landing-page/7145)  
[PurpleAir Map Guide](https://community.purpleair.com/t/purpleair-map-guide/90)  
[How Do I Download Sensor Data](https://community.purpleair.com/t/how-do-i-download-sensor-data/4650)
