Update Infrared.cpp

Added in the filter function and newData variable for the filter