Can I run a small program after the sensor gives information?

Iam very sorry for my bad english but pls help me!
I will be very appecaited for your help! <3
Can I run a small program after the sensor gives information?

You're going to have to provide a lot more detail to get a sensible answer.

What sensor?
Which arduino?
what do you want it to do after the sensor is read?
What do you mean by "run a small program"?

vtbgaopink:
Can I run a small program after the sensor gives information?

Almost certainly YES.

But you need to respond to Reply #1

...R