The working principle of nanoscale photodetectors is based on the photoelectric effect, where photons hitting a material generate electron-hole pairs. These pairs are then separated and collected to produce an electrical signal. The nanoscale dimensions of these devices allow for enhanced interaction with light, leading to improved performance metrics such as higher quantum efficiency and lower dark current.