Compact IP67 controller for small machines