Software serial gives unreliable results