Arduino program problem with DC input