What camera to use on Arduino Mega

Hi, Good day to everyone. I have project now that will use a sensor, arduino mega 2560 R3, wifi shield and an arducam(still finding out what to use and what is compatible with updated libraries). So, my project will detect something on a sensor, once it has detected a certain value, the camera will take a photo then will sens it to a web server via the WLAN. I need idea on what camera to use and what would be some addtl parts I need. TIA

What you need is generally called a "Webcam".

Plenty available, ready to go.