i face some issue, example i put 1 "3 Tier Tower Lamp" and 1 sensor stick on the tower lamp.
so on the node-red part when the light is light up then start to counting the light how long has be turn on the result wanted to have 1 or 0 only.
I am sorry, I don't understand what you mean by that. Can you explain again in more detail, with examples of what might happen and what result you want.
@Colin got any node that can detect light?
example: when light is on, the node/function will start to detect the light and start to count the time until the light off.
It isn't a matter of finding a node, you need to work out what hardware you are going to use. You could use a light sensor, but would it be able to distinguish between bright daylight and the light? Alternatively you could measure the voltage or current at the light.