Remember the golden rule of automation: Automated taps can violate app Terms of Service or drain your battery if looped infinitely. Always add sleep timers in your scripts and use a dedicated testing device.
adb devices adb -s <serial> shell getprop ro.product.model
Your automator can use the input command via ADB shell: