Add photocell reading test function