as well as it is showing red box message as undefined variable
There is a mistake in the code as suggested by the error pop up in the first post that you had shared.
Your variable name is “light” while in the code you have used “light_data”. Please replace light_data to the variable name ie light and your code should work fine.
1 Like