Program to receive data from photocells