I am trying to program a traffic light that is powered by OPC UA Data

Hello and welcome to the Node-RED forum.

I think you need to give us a bit more information and post your flow so people can help you.
Also are you talking about a real bulb or a virtual bulb??

PS:
I know nothing about OPCUA - but assume you are checking if an output is between a certain range of values to decide which bulb to illuminate?

PPS:
You can read how to post a flow here...