Ovulation prediction help

Hi everyone! Can someone explain how an OPK test works? Once the line is darker that means I’m ovulating soon right? So, when should we have sex to increase our chances?