Controller for tanning bed