perfecting radio shack sensor code