Raspberry Pi Python script for detecting light and playing sounds