Sourcing the correct parts after all your helpful comments.
But I can only find one photodiode in Maplins if I am to buy one tomorrow - the SFH300. Will that work in place of the BPW40? Otherwise I'm stuck until I can find one. I have some photodiodes that I am using but I have no idea what they are.
This is the Maplins one: