Code to automatically, pair, link, and bind an HC-05 with an HC-06 bluetooth module. This sketch will work with ANY Arduino as long as the modules/Arduino are wired correctly.
Wiring for Arduino with multiple hardware Serial ports (Mega used as an example):
Wiring for Arduino with no hardware Serial ports (Nano used as an example):