First of all we will show the result if is a simple function, namely where are disjoint measurable sets and .

Now, in the general case, take an increasing sequence of simple functions which converges pointwise to . We have for all that , and since is non negative the sequence is also increasing. You can conclude by the monotone convergence theorem.

(it's what you tough, but here we didn't need to approach by simple functions).