refine digit detection

output new values every second