programming emergency

deadly_carrots:
to answer the questions i do not know what you mean by messages being sent to the arduino but yes i have tried examples from the serial input basics but no avail

If you want to write successful code for your Arduino to interpret messages that are being sent to it then the first thing you need to know is the content of those messages.

Have you tried the second example in Serial Input Basics on its own - and if so, what is the output it produces?

...R