To make the photodiode work, the pullup resistor in the Arduino must be disabled. This is done in the code shown in the video.