Looking how to Send Back Data From The Pi

Hello looking for help
im planning on using the PI 4 to control the lights are building
Im try to find out if theirs a way to for the pi to send to the APP whether a specific light is on or any light is on per GIO