Room light monitoring

even this cide is not working error is showing that line 25 Key [‘sucess’) in
what could be the issue?

Please do share the code so that we can try and help you.