 
 // Analog input for temperature measurement: 
 const int TEMP_INP = A7;
+
+/* The temperature signal is lowpass filtered using a
+ * moving average filter during the acquisition.
+ * The cutoff of that filter is still pretty high for
+ * a temperature signal, we need another FIR
+ * filter with the cutoff in the .5Hz range.
+ */
+FIR<double, 15> filt_2nd_stage;
 
 void plot_callback(void) {
   // plotting thread

  uint16_t count = 0;
  unsigned long start_time = millis();
  while(millis()-start_time < 10) {
  //while(count < 5) {
    sum += analogRead(TEMP_INP);
    count++;
  }

#include <Plotter.h>
#include <Thread.h>
#include <ThreadController.h>
#include <FIR.h>

Plotter plotter; // for plotting over serial

