I read online that 'shall' is still used for technical specifications and instructions, where it means 'must' i.e. it is used to describe an instruction that must be followed or a rule.
It does not apply in your example because you are not giving instructions or writing a specification, you are explaining what will happen. I would write it like this:
When the pokayoke (fool proofing device) detects a defective part, the machine will stop. The lamp on the control panel will turn on and a buzzer will sound.
I have rearranged the sentence because you need to say 'ON the control panel, and without the rearrangement it would be 'turn on on the control panel', which is not good English.
By the way, just as an aside nowadays native English speakers hardly ever use 'shall', we use 'will' instead in nearly all cases with a few specific exceptions. 'Shall' sounds really strange and old fashioned even when it is used correctly.