Alvaro Hodeg timed his sprint to perfection to hold off Peter Sagan and claim victory in Stage One of the Tour of Slovakia.