Read sensor history data using this Python code to access basic cayenne API and then send it to mysql.