Arduino program help

Hello ..
I need some help to create a program that will do a function like , reading different value for the sensor,
e.g an arduino can receive different digital input , the controller should combine all this , and then convert it to HEX , and then sent this code to an another mobile no..
Can anyone can help me in making this program.

i think so , check the subsrction gigs & collaborations

and please be more specific because it is still vague what you want ....

As i am doing a project , so i want that the different switches status , mean On or Off , 0 or 1 , this is the digital input to the Arduino , then the Arduino combine the 10 different status of the switches,
like this 1000110000 ,,,, so this code is then converted to HEX format , and the HEX format should be sent by an GSM Modem or Mobile Phone..
So how can i do this !!!

Just collect the bits and put them in the right place using bitWrite - http://www.arduino.cc/en/Reference/BitWrite -

one integer can hold 16 bit so it can easy hold your 10 bits

int ALL = 0;
for(uint8_t i=0; i<10; i++)
{
  bitWrite(ALL, i, digitalRead(i));
} 
Serial.println(ALL, HEX);

Please not this is only a code snippet, it is not a complete sketch. Therefor you will have to make a sketch out of it. But all the 'difficult ' parts you need are in there.

Please spend a few days on the tutorial section and the reference section as there is a lot to learn there. You will see many language constructs and how to do things like you asked. Time spend there is not time lost.

Succes,

And this topic explain how to send SMS:
http://arduino.cc/forum/index.php/topic,50691.0/topicseen.html