 TMP36 tmp36(Tmp36Pin, Tmp36Samples, 5.06);
 
 // Initialise DS18B20 library: measurement pin, number of samples to average
-DS18B20 ds1w(DS18Pin, DS18Samples);
+//DS18B20 ds1w(DS18Pin, DS18Samples);
+OneWire ds1w(DS18Pin);
 
 float h;  // used for calculating dewpoint
 float t;  // used for calculating dewpoint
+byte ds1w_addr[8];
+byte ds1w_data[12];
 
 void setup()
 {

#include <VBAT.h>
#include <TMP36.h>
#include <DHT.h>
#include <DS18B20.h>

// An LED is connected to pin 3
#define ActivityLED 3

      case 'W':
      case 'w':
        // DS18B20 temperature
        Value = readDSTemperature();
        Serial.print(Value);
        break;
      default:
