var dotenv = require('dotenv');
dotenv.load();
var express = require('express');
var app = express();

app.get('/', function(req, res) {
  res.sendFile(__dirname + '/Thermostat.html');
});

app.post('/', function(req, res) {

});

app.listen(3000, function() {
  console.log('Thermostat app listening on port 3000!');

});

app.use(express.static(__dirname + '/public'));
// app.use(express.static('public'));

var express = require('express');
var app = express();

app.get('/', function(req, res) {
  res.sendFile(__dirname + '/Thermostat.html');
});

app.post('/', function(req, res) {

});

app.listen(3000, function() {
  console.log('Thermostat app listening on port 3000!');

});

app.use(express.static(__dirname + '/public'));
// app.use(express.static('public'));

Remove dotenv