In that case you won't need 10M resistors. Here's a circuit you can modify for your app...