There is a cordless vacuum cleaner with a small lamplight to indicate how much battery is left. When there is plenty left, the lamplight is green, but when there isn't much left, the lamplight turns orange.
You can tell when the battery is low by the color of the lamplight.
You can tell when the battery is low from the color of the lamplight.
When you are talking about this vacuum cleaner, which can you say, "by the color of the lamp"light" or "from the color of the lamp"light"?