Particle Photon and DS18b20 temperature sensor

I’m using a modified version of: AnalogSmooth Library to smooth analog signal jitter by averaging concurrent readings by Michael Thessel.

I just changed it slightly so that it works not only with Analog Pins, but with any values.

Filtering is a simple if statement:

if ( t < 50 && t > -30){ //checking if value is in the adequate range
      float tempSmooth = as100.smooth(t); //smoothing it with the AnalogSmooth library
      Blynk.virtualWrite(27, tempSmooth); //writing it to the V pin
  }