old_contents: var express = require('express');
  var app = express();
  var BME280 = require('node-bme280');
  var barometer = new BME280({address: 0x77});
   
  barometer.begin(function(err) {
      if (err) {
          console.info('error initializing barometer', err);
          return;
      }
      console.info('barometer running');
  });
  
  app.get('/', function (req, res) {
  	barometer.readPressureAndTemparature(function(err, pressure, temperature, humidity) {
  		res.write("<html><head><meta http-equiv=\"refresh\" content=\"5\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></head><body>");
  		res.write("Temperature: " + temperature.toFixed(2) + " ℃<br>");
  		res.write("Pressure: " + (pressure / 100).toFixed(2) + " hPa<br>");
  		res.write("Humidity: " + humidity.toFixed(2) + "%\n");
  		res.end("</body></html>");
  	});
  });
  
  app.listen(3000, function () {
  	console.log('Example app listening on port 3000!');
  });
  
new_contents: var express = require('express');
  var app = express();
  var BME280 = require('node-bme280');
  var barometer = new BME280({address: 0x77});
  
  var Datastore = require('nedb')
    , db = new Datastore({ filename: 'data.txt', autoload: true });
   
  barometer.begin(function(err) {
      if (err) {
          console.info('error initializing barometer', err);
          return;
      }
      console.info('barometer running');
  });
  
  app.get('/', function (req, res) {
  	barometer.readPressureAndTemparature(function(err, pressure, temperature, humidity) {
  		res.write("<html><head><meta http-equiv=\"refresh\" content=\"5\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></head><body>");
  		res.write("Temperature: " + temperature.toFixed(2) + " ℃<br>");
  		res.write("Pressure: " + (pressure / 100).toFixed(2) + " hPa<br>");
  		res.write("Humidity: " + humidity.toFixed(2) + "%\n");
  		res.end("</body></html>");
  	});
  });
  
  app.listen(3000, function () {
  	console.log('Example app listening on port 3000!');
  });
  
subject: add nedb