added filter to ir sensor values