This holographic /prismatic tape works wonders. Cheap and easy - just put some around the deck like a police line. Read the reviews. It irritates the birds because they cannot see/notice predators with the constant flicker.
https://www.amazon.com/Premium-Qual...keywords=Duck+Repellent&qid=1670470562&sr=8-7
f you'd rather do an electronics project, ignore this post.
https://www.amazon.com/Premium-Qual...keywords=Duck+Repellent&qid=1670470562&sr=8-7
f you'd rather do an electronics project, ignore this post.