It is possible to export data directly from your widget into a csv. For this, you first create the widget as you would like the data to be exported (regarding the period, interval, and metrics that are showing).
If you click on the widget to enlarge it, you enter the Explore page of that widget. In this Explore view you can read the information from all of your data sources, with various options to narrow down the exact information and export them. For example, you can determine the time frame and the interval of the sensors. For a full overview of your options, see How to analyze your data.
Click on the arrow button in the upper right corner to export the data you are viewing. You'll get a prompt to name the csv, after which the download starts.