#Example5 is more like my task, but I don't understand how to apply it in setup section (not in loop).