There's no sure-fire way to stave off detonation, a sensible tuner is probably your best bet.
A knock sensor is an 'after the fact' device, which means that knock is already occurring. You've be nuts not to have any sensor at all - at worst you can probably do something tricky to give you a "my engine is being damaged" light