I found a similar device and will be using the method I described above.

My conditional statements needed some alteration to function properly.

Problem solved.