Hi Makoto, I have looked at your code. I have made some changes, but I don't know if the code does what you want to test correctly. In general, you need to consider whether you want a cyclic (classic in automation) or an event-based program. The simplest is cyclic: #!/usr/bin/python3 # -*- coding: u...