We found a significant difference in the results obtained through the LDR and the photodiode. The later has given better results and has reproduced a regular decay in the amplitude of the oscillator even when the experiment was performed in a highly illuminated room. The Arduino board, alongside the referred peripherals,has shown great potential for building low cost experimental setups to be used in physics classes,both for expositive and hands on approaches.