title: Tell when Bluetooth module connects on Arduino
body: <p>I'm working on a project with Android and Arduino and am trying to figure out how on the Arduino side to tell if the Bluetooth is connected or not.  </p>
  
  <p>I'm using one of these <a href="http://www.ebay.com/itm/290859124600?ssPageName=STRK%3aMEWNX%3aIT&amp;_trksid=p3984.m1497.l2649" rel="nofollow">Bluetooth Modules</a> to connect. I know I can send a command through Android, but I'm trying to have an action happen automatically when they connect and not have to run a background application on the Android if possible.</p>