demo code for frequency identification