'Demonsterates the count command Input 15 'Set the pin to input counter var word 'Use this to hold the count Loop: count 15,1000,counter ' If duration is 1 second the we will get the freq in hertz. debug ["Frequency: ",dec counter,10,13] 'Lets display it goto loop