need help with the programming

im trying to use an ultrasonic sensor (srf05) to be connected to arduino uno 3 board and another gsm board. the problem is im not sure of the coding. process will be like ultrasonic sensor range till 20cm then will send a message to the gsm board. help with codes...

Post what you have so far. Use code tags.