JY MCU Hc-05 configuraton and code

There is probably some examples on the forum - you can search.
But most if the time, Google will do fine:
http://lmgtfy.com/?q=instructables+arduino+bluetooth