yes it is possible, if your camera has digital IO (alarm inputs) you could use a Arduino or similar to do logic. or go old school and use relays and capacitors to create the open circuit to trip the alarm input, depending on your goal the Arduino will do what you ask but may be a bit of a...