The logged data is stored in “dataLog.txt”. The following code has been written:
"<a href=\"dataLog.txt\" download=\"data.txt\">Download</a>";This code does not access the dataLog.txt file correctly, the browser just downloads the Page Source instead. Hence, once the download button is pressed a text file is saved with the source code rather than saving the dataLog file containing the temperature readings.