thanks for the advice everyone. I managed to get a little working selenium cell type.