sir I got the code for reading values from hc sr 04 ultrasonic senor. now i want to send these values via bluetooth. so is there any way to get example sketch for sending data via bluetooth. i have two hc 05 modules;one is configured mastered and other one as slave.Don't try to trigger and wait for echo over wireless, the latency will be too much and your readings will be inaccurate. Take the reading on the uno, then send the numerical data to the mega.
Google "hc-05 arduino" and you'll get tons of examples with code.