added frequency to sensor