arduino now for 4 valves
added db write support. Added cat movement recognition