I have tried this: How to execute a shellscript when I plug-in a USB-device and have the following output for "lsusb":
Bus 002 Device 007: ID 046d:0825 Logitech, Inc. Webcam C270
and in /etc/udev/rules.d/camset.rules
ATTRS{idvendor}=="046d", ATTRS{idproduct}=="0825", RUN+="camset.sh"
and camset.sh is located at the root directory. When I run "sh camset.sh" it runs fine so I don't think there is any problem with that. Thanks for the help