add readAmplitude Code