Read photocell from main script