OK, well I put a 1200pF capacitor in series with the analog signal and now it seems to be biased at 1V. So now I just have to invert it and amplify the signal so that the minimum is 0V and the max is 5V.