well a comparator, op amp or 7414 won't cost you more than 0.5 and 2 resistors or a pot will cost less than that so the total won't be more than $1 =P
the comparator of course would be the best solution, but on the inside is basically an op amp, so you can use one if you have one and don't want to buy a comparator.