button and switch changed to interrupt routines. pot mapped from 0 to 100 to send to server.