 //#include "IRSendRev.h"
 //#include "Encoder.h"
 //#include "TimerOne.h"
+#include <Servo.h> 
 
 MMA7660 acc;
 DS1307 ds_clock;

TM1637 fourdigit[6];      // 7 instances for D2-D8, however, max 4 displays, you can't use adjacent sockets, 4 pin display
ChainableLED rgbled[6];   // 7 instances for D2-D8

#define SLAVE_ADDRESS 0x03

#define dust_sensor_read_cmd    10
#define dust_sensor_en_cmd		14
#define dust_sensor_dis_cmd		15

#define encoder_read_cmd        11
#define encoder_en_cmd			16
#define encoder_dis_cmd			17

#define flow_read_cmd           12
#define flow_en_cmd				18
#define flow_dis_cmd       		13

int cmd[5];
int idx=0;

long flow_read_start;
byte flow_val[3];        //Given it's own I2C buffer so that it does not corrupt the data from other sensors when running in background 


void setup()
{
    Serial.begin(57600);         // start serial for output
